package com.lionel.test;
public class Singleton {
	private static class InnerSingletion {
		private static Singleton single = new Singleton();
	}
	public static Singleton getInstance() {
		return InnerSingletion.single;
	}
	public static void main(String[] args) {
		Singleton s1 = new Singleton();
		Singleton s2 = new Singleton();
		System.out.println(s1.getInstance().hashCode());
		System.out.println(s2.getInstance().hashCode());
	}
}
